<?php

/*

	GStats++: GHost++ Web-Based Statistics
    Copyright (C) 2009 Marc André 'Manhim' Audet

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.

*/

interface iPage
{
	function __construct(Smarty &$tpl, Database &$dbs, $args, $cfg, $lang);
	
	function run();
}

abstract class Page
{
	protected $_tpl;
	protected $_dbs;
	protected $_args;
	protected $_cfg;
	protected $_lang;
	
	function __construct(Smarty &$tpl, Database &$dbs, $args, $cfg, $lang)
	{
		$this->_tpl = &$tpl;
		$this->_dbs = &$dbs;
		$this->_args = $args;
		$this->_cfg = $cfg;
		$this->_lang = $lang;
	}
}

?>